﻿<UserControl x:Class="DeltaGroup.WheelOfJeopardy.UI.Controls.AdjustableSpinRemaining"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ui="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Converters" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" HorizontalAlignment="Center">
    <UserControl.Resources>
        <ui:SelectedVisibilityConverter x:Key="SelectedVisibilityConverter" />
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
        <TextBlock Width="30" Height="30" Text="{Binding Path=Round.SpinsRemaining, BindsDirectlyToSource=True}"  Style="{StaticResource ResourceKey=SpinsRemaining}">
            
        </TextBlock>
        <StackPanel Visibility="{Binding Path=DebugMode, Converter={StaticResource SelectedVisibilityConverter}, BindsDirectlyToSource=True}">
            <Button Content="˄" Width="15" Click="cmdUp_Click" />
            <Button Content="˅" Width="15" Click="cmdDown_Click"/>
        </StackPanel>
       
    </StackPanel>
</UserControl>
